Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update default props to JS default params #1598

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

kabaros
Copy link
Collaborator

@kabaros kabaros commented Sep 14, 2024

Implements LIBS-682

As we move to React 18 in platform as part ofhttps://github.com/dhis2/app-platform/pull/876, all our components and apps need to stop using defaultProps as these were deprecated and started generating a warning since React 18.3.

Most of this transformation was done using a codemod - the codemod is a bit brittle and tied to this project for now, but can be made more generic and incorporated in d2 migrate as we test it in more projects.

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Sep 14, 2024

🚀 Deployed on https://pr-1598--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify September 14, 2024 14:25 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify September 14, 2024 16:27 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify September 14, 2024 17:16 Inactive
@kabaros kabaros marked this pull request as ready for review September 14, 2024 17:24
@kabaros kabaros requested a review from a team as a code owner September 14, 2024 17:24
@kabaros kabaros requested a review from a team September 14, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants